package cn.dfun.demo.scdemo.ali.order.service;

import cn.dfun.demo.scdemo.common.entity.CommonResult;
import cn.dfun.demo.scdemo.common.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="scdemo-ali-payment", fallback = PaymentFallbackService.class)
public interface PaymentService {
    @GetMapping(value="/payment/{id}")
    CommonResult<Payment> getById(@PathVariable("id") Long id);
}
